***************************************************************************************
*  Replication File for "State Capacity and Terrorism: A Two-Dimensional Approach"    *
*  Authors: Cullen Hendrix and Joseph K. Young                                        *
*  Date: 4/9/14                                                                       *
***************************************************************************************

*use `Hendrix_Young_SecStudies_Replication.dta'

*Table 2

nbreg f_attacks attacks f_icrg f_mil_2 year after98, cluster(ccode)
nbreg f_terrorCount terrorCount f_icrg f_mil_2 year after98, cluster(ccode)

*Table 3

nbreg f.attacks attacks f_icrg f_mil_2 exconst vanhanen_democ_index durable intensity logpop logrgdpch grgdpch year after98, cluster(ccode)
nbreg f.attacks attacks f_icrg f_mil_2 lineqmean exconst vanhanen_democ_index durable intensity logpop logrgdpch grgdpch year after98, cluster(ccode)
nbreg f.attacks attacks rpr f_mil_2 exconst vanhanen_democ_index durable intensity logpop logrgdpch grgdpch year after98, cluster(ccode)
nbreg f.attacks attacks rpr f_mil_2 lineqmean exconst vanhanen_democ_index durable intensity logpop logrgdpch grgdpch year after98, cluster(ccode)
nbreg f.terrorCount terrorCount f_icrg f_mil_2 exconst vanhanen_democ_index durable intensity logpop logrgdpch grgdpch year after98, cluster(ccode)
nbreg f.terrorCount terrorCount f_icrg f_mil_2 lineqmean exconst vanhanen_democ_index durable intensity logpop logrgdpch grgdpch year after98, cluster(ccode)
nbreg f.terrorCount terrorCount rpr f_mil_2 exconst vanhanen_democ_index durable intensity logpop logrgdpch grgdpch year after98, cluster(ccode)
nbreg f.terrorCount terrorCount rpr f_mil_2 lineqmean exconst vanhanen_democ_index durable intensity logpop logrgdpch grgdpch year after98, cluster(ccode)

*Table 4

reg f_icrg l.f_icrg d.attacks d.exconst d.vanhanen_democ_index d.durable d.intensity d.logpop d.logrgdpch d.grgdpch l.attacks l.exconst l.vanhanen_democ_index l.durable l.intensity l.logpop l.logrgdpch l.grgdpch  year after98, cluster(ccode)
reg f_icrg l.f_icrg d.terrorCount d.exconst d.vanhanen_democ_index d.durable d.intensity d.logpop d.logrgdpch d.grgdpch l.terrorCount l.exconst l.vanhanen_democ_index l.durable l.intensity l.logpop l.logrgdpch l.grgdpch  year after98, cluster(ccode)
reg rpr l.rpr d.attacks d.exconst d.vanhanen_democ_index d.durable d.intensity d.logpop d.logrgdpch d.grgdpch l.attacks l.exconst l.vanhanen_democ_index l.durable l.intensity l.logpop l.logrgdpch l.grgdpch  year after98, cluster(ccode)
reg rpr l.rpr d.terrorCount d.exconst d.vanhanen_democ_index d.durable d.intensity d.logpop d.logrgdpch d.grgdpch l.terrorCount l.exconst l.vanhanen_democ_index l.durable l.intensity l.logpop l.logrgdpch l.grgdpch  year after98, cluster(ccode)
reg f_mil_2 l.f_mil_2 d.attacks d.exconst d.vanhanen_democ_index d.durable d.intensity d.logpop d.logrgdpch d.grgdpch l.attacks l.exconst l.vanhanen_democ_index l.durable l.intensity l.logpop l.logrgdpch l.grgdpch  year after98, cluster(ccode)
reg f_mil_2 l.f_mil_2 d.terrorCount d.exconst d.vanhanen_democ_index d.durable d.intensity d.logpop d.logrgdpch d.grgdpch l.terrorCount l.exconst l.vanhanen_democ_index l.durable l.intensity l.logpop l.logrgdpch l.grgdpch  year after98, cluster(ccode)

*Table A1

factor icrgbq icrgrl 
factor log_milex log_milper log_milex_soldier if e(sample)
